<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="utf-8">
    <link rel="stylesheet" href="css/edit.css">
</head>
<body>
<div id="div_container">
    <div id="div_fruit_list">
        <p class="center f30">编辑库存信息3</p>
        <form th:action="@{/fruit.do}" method="post" th:object="${fruit}">
        <!-- 隐藏域：功能类似于文本框，值随表单提交而发送给服务器，用户看不到-->
            <input type="hidden" name="fid" th:value="update">
            <input type="hidden" name="fid" th:value="*{fid}"/>
            <table id="tbl_fruit">
                <tr>
                    <th class="w20">名称:</th>
                    <!-- <td><input type="text" name="frame" th:value="${fruit.fname}"/></td>>                -->
                    <td><input type="text" name="fname" th:value="*{fname}"/></td>
                </tr>
                <tr>
                <th class="w20">单价:</th>
                <td><input type="text" name="price" th:value="*{price}"/></td>
                </tr>
                <tr>
                    <th class="w20">库存:</th>
                    <td><input type="text" name="fcount" th:value="*{fcount}"/></td>
                </tr>
                <tr>
                    <th class="w20">备注:</th>
                    <td><input type="text" name="remark" th:value="*{remark}"/></td>
                </tr>
                <tr>
                    <th colspan="2">
                        <input type="submit" value="修改" />
                    </th>
                </tr>
            </table>
        </form>
    </div>
</div>
</body>
</html>
